﻿@*model MusicHouse.Models.Usuario*@

<h1>Login</h1>
@using (Html.BeginForm("Index", "Account"))
{
    if (Session["usuario"] == null)
    {    
        @Html.ActionLink("Entrar", "Index", "Account", new { qstring = Request.QueryString["returnUrl"] }, new { })<br />
        @Html.ActionLink("Registre-se", "Register", "Account", new { qstring = Request.QueryString["returnUrl"] }, new { })<br />
        @Html.ActionLink("Confirmar Cadastro", "ConfirmarCadastro", "Account")<br />
        @Html.ActionLink("Esqueci minha senha", "EsqueceuSenha", "Account")<br />
    }
    else
    {
        ViewBag.UlogNome = ((MusicHouse.Models.Usuario)Session["usuario"]).Nome ;     
        
        <p>Olá, @ViewBag.UlogNome</p>        
        @Html.ActionLink("Troca Senha", "TrocaSenha", "Account")<br />
        @Html.ActionLink("Sair", "Logout", "Account")<br />
    }
}


